package com.jiyun.feign;

import com.jiyun.model.Paper;
import com.jiyun.model.RaceDto;
import com.jiyun.vo.PaperShow;
import com.jiyun.vo.ResultResopnse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/28 11 15
 * */
@FeignClient(value = "day12Race")
public interface RaceFeign {
    @PostMapping("/race/findRace")
    public ResultResopnse findRace(@RequestBody RaceDto raceDto);
    @GetMapping("/race/findRaceStatus")
    public ResultResopnse findRaceStatus();
    @GetMapping("/race/findRaceId")
    public ResultResopnse findRaceId(@RequestParam("id") Integer id);
    @GetMapping("/race/toAdd")
    public ResultResopnse toAdd(@RequestParam("teamId") Integer teamId,@RequestParam("raceId")Integer raceId);
    @GetMapping("/race/toRaceStart")
    public ResultResopnse toRaceStart(@RequestParam("raceId")Integer raceId);
    @GetMapping("/race/showQuiz")
    public ResultResopnse showQuiz(@RequestParam("raceId")Integer raceId);
    @PostMapping("/race/showPaper")
    public ResultResopnse showPaper(@RequestBody PaperShow paperShow);
    @PostMapping("/race/addAll")
    public ResultResopnse addAll(@RequestBody Paper paper);
    @GetMapping("/race/delPaperDan")
    public ResultResopnse delPaperDan();
}
